package com.have.blog.admin.domain.dto;

import com.have.blog.base.dto.BaseDto;
import com.have.blog.base.validator.annotation.NotBlank;
import com.have.blog.base.validator.group.Insert;
import com.have.blog.base.validator.group.Update;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BlogSubjectDto extends BaseDto<BlogSubjectDto> {

    /**
     * 专题名
     */
    @NotBlank(groups = {Insert.class, Update.class})
    private String subjectName;

    /**
     * 专题介绍
     */
    private String summary;

    /**
     * 封面图片UID
     */
    private Integer coverPictureUid;

    /**
     * 排序字段
     */
    private Integer sort;

    /**
     * 专题点击数
     */
    private Integer clickCount;

    /**
     * 专题收藏数
     */
    private Integer collectCount;

    /**
     * 专题图片
     */
    private String photoUrl;
}
